package cn.iocoder.yudao.module.dify.controller.admin.fileprocessing.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - Dify文件处理跟踪 Response VO")
@Data
@ExcelIgnoreUnannotated
public class FileProcessingRespVO {

    @Schema(description = "文件处理唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "18168")
    @ExcelProperty("文件处理唯一标识")
    private Long id;

    @Schema(description = "用户标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "19274")
    @ExcelProperty("用户标识")
    private Long userId;

    @Schema(description = "用户标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "19274")
    @ExcelProperty("文件名称")
    private String name;

    @Schema(description = "原始文件存储路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("原始文件存储路径")
    private String originalFilepath;

    @Schema(description = "处理后文件存储路径")
    @ExcelProperty("处理后文件存储路径")
    private String processedFilepath;

    @Schema(description = "处理状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "处理状态", converter = DictConvert.class)
    @DictFormat("dify_file_process_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String processingStatus;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "处理开始时间")
    @ExcelProperty("处理开始时间")
    private LocalDateTime processingStartedAt;

    @Schema(description = "处理完成时间")
    @ExcelProperty("处理完成时间")
    private LocalDateTime processingCompletedAt;

}